package com.lc1993929.actuator.starter.autoconfigure;

/**
 * Created by LiuChang on 2017/7/27/027.
 */

import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.annotation.PostConstruct;

@ConfigurationProperties(prefix = "mylog")
public class LogProperties {

    private String exclude;

    private String[] excludeArr;

    @PostConstruct
    public void init() {
        if (exclude != null) {
            this.excludeArr = exclude.split(",");
        } else {
            excludeArr = new String[]{};
        }
    }

    public String getExclude() {
        return exclude;
    }

    public void setExclude(String exclude) {
        this.exclude = exclude;
    }

    public String[] getExcludeArr() {
        return excludeArr;
    }
}
